Basic database structure and tests in place