conected lecture page with DB