fixing database search so that it doesnt depend on the project