Implement a database test fixture
- Run postgresql from the fixture in local unix socket only
- Initialize database
- Open a connection
- Close and cleaup
Also add a test case for account.
tests: make a database test fixture, closes #939 @4h
Start PostgreSQL for each test in a clean directory and initialize a malikaniadb
within. Only enable unix domain sockets to avoid collision with a system
While here, move out the init script into a dedicated file until we find a good
solution for initializing databases and upgrading.