refactor a database project