The new function checks if the database can be created, creates it and loads the Spatialite extension.
\approve @prehn @marius \fyi @shinde @tara