Database: Added foreign keys