modulecreation minor changes

add one field in modules table and add the stored procedure for saving