working through problems loading studies into empty db