well no wonder its seg faulting... dont actually have a real database connection going. get that going, prove it works (using ENV db) then see if we segault