recent and purchase tabs now read from database