Not able to connect to database