Actually puts into database.