Implemented foreign key and index builder implementation of mysql