Improve the DB structure, add some doc and a project name encoder.