Added SQL inserts for database.