More generic safe_commit and separate database for unit tests.
Commit option for database object save method
Use separate database for unit tests.
Use generic Input parsers for database routes.