added components migrations / model
fixed incorrect table names in migrations
added validations to costs and moved finalization before validation