Fix database date & extract to own method (for statistics)