Saves project to the database