updated sqlmanager