wrote insert query. investigating foreign kety support