Add Client List Option and fix some bugs
Database Upgrade

Formatted all the database and added new foreign keys.