Fix database extension in iOS

In Android the database is created with .db extension but in iOS the
database was being created without the extension, this can cause problem
with cross platform javascript.