Added IP address checking, get database user count