added sql script for the session manager