bugfixing mysql_query
removing old parts