Create turned on writing to database