fixed db searches through params to work with slugs