Only creates websql database if really needed