Check database before we process
Bugfixes
Remove c_err