Changed db path
Changed an if-statement checker to be an assertion