Added check to see if database exists. [Issue #3]