Add delay method to db