added funcitonality for reseting database
merging requests: