Fix 243: Get database user details via the API

To fix #243.