script for launching database AND api updated, if you kill it, the background process will be killed too