Start API, connection to db