Completed migration from mock (in-memory) DB adapter to PostgreSQL