Exceptions handling: database create exception handling improvement

Moved from inspire_next-formatter-and-searchbar-improvements