database and connection to db