databases tables and foreign keys established