modify the sql table and accomplish the postcreate function almostly