Get projects from database