Improve the DB structure, add some doc and a project name encoder.
Merge branch 'hkaj/server_code'