got errors out of tests but they don't run properly with the media, fixed database searching by keyword