Suggested changes to implement issues #157 and #158

#157 Add support for foreign key constraints
#158 Make SqlExecutor publicly usable