adding database connection and sort of skeleton for api