make database writable