FEATURE: Add payment support to API.

Also adds some helper functions for retrieving user data.

DOCS lacking.
REFACTOR: Increase readability for getFeeId() SQL statement.

Breaking the oneline SQL statement into multi line and also
adding AND instead of && and upper case SQL keywords.