added "~error test" to see if it can connect to the database.