Not able to connect database