Improved the where caluse format of MySQL class, made auto-complete for search and added doc for database class