basic db definitions