Fix bugs with database file handling.

2 jobs for master in 14 seconds
Status Job ID Name Coverage
  Test
passed #2975
pages

00:00:14

 
  Deploy
passed pages:deploy

00:00:00