fixed bug in createDatabase(), getData() works fine now