finish logic of form product
added new database format