trying to connect database but it failed!