modifications for db