Database Connection Fixed (tested)