db definitions