updates to subject class abstracting database methods