Add new_db_session method which allows to create new db session instead of use the shared session from db_session property.
updated new_db_session arguments.
enhanced pk_spec generation.