storing portals in database and view them