Session renewal fix + record versioning fix

1. When there is no session and sessions are stored on db by settings, login_user() failed because it tries to renew an None session.
1. record versioning must skip tables without '_id' field.