can now save solutions into the database