adding projects models and db functions