Database install and error handling