Database access updates

Added try catches
Still having issues at lint 98.