adding check function to database insert

1 job for 005-editing-server in 15 seconds (queued for 2 seconds)
Name Stage Failure
failed
job:test:unit Test
ERROR test_missing_keys.py - AttributeError: module 'database' has no attribu...
ERROR test_query_valid.py - AttributeError: module 'database' has no attribut...
!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 4 errors in 0.16s ===============================
Running after_script
Running after script...
$ echo "Tests have been done"
Tests have been done
ERROR: Job failed: exit code 2