Added connection pooling and user role support