mysql db scripts fixed