Switches database to ORM postgresql from InMemory.