stored procedure support and login procedure