connect database with out error

fixed syntax error