Add errorMessage handling method, and Database creation script