renamed database to reflect phpMyAdmin rename
error checking - database