refactoring get db state teast and creating read page test