Finished searchDb Implementation.