get lecture from db runs green
homework runs red, refactored a bit