Working database reading and page rendering