change the connection to database + create the database everytime it starts