Added RDS database functionality.

WIP.