Small db fix