Fixed Database Connection