minor bug fixes. moved db file to project root