create db relationships