Added connection to database