Setting up database.
Allow write access to database file.