this database stuff is taking longer than i thought