filter db stuff WIP. broken.