db schema + test queries