make database.db writable