started mysql-based categories implementation