replace mysql database connect