New functions for the Database
New Class are created to get a user-specified pattern-date