added training model form and database with hStore