Added basic database insert functionality
Fixed