relationships for database