added principle route and sql, added test for project sql