added automatically createing database support