Database first definition