Added support for automatic creation of database when string is specified.