fix for db