Add foreign keys to database table