Commit to current development.

Database connection is now optional, while Logging and many main
functionalities requires a database.