Adding an Automation Layer to a Database