moved mysql_acces to the top