used getreadable in searchHandler instead of getwritable for db creation