Fixed database bug

Fixed bug where database file was not erased and recreated so it would
always erase on start up since the creation date was always behind
compare date.