First attempt at writing to the database.