Fixes error with creating schema
fixes issues with saving to database
Merge pull request #54 from Kdr18702/test

Fixes error with saving to database