Added script for daemon-running the sql layer