integration refactoring

this is in memoty implementation just for testing, it doesnot use real database, it will not work in production, the real implementation will have the provider of the current date