mock testing for db done