implemented simpledb, made coding enhancements