small fix to db