implemented database access for 'project'