connection made to mysql database, not totally working