add catching the errors

1) if database deleted
2) if database structure was edited
3) if database file was broken
If application can't be started view message.