Save projects to the database