Fixed more PHP code in terms of entering classes into database