fix tests, make test runs faster locally

this change can make local tests break when database changes, to fix it
run py.test - -create-db