We have covered some of the more common relational and NoSQL databases here.
However, given the plethora of storage choices, we may not have mentioned your
database of choice. If that is the case, we suggest searching for documentation
on How to connect to database X from the Linux commandline. Each SherlockML
server runs the Ubuntu operating system, to which you have root access. Any
documentation on connecting from the terminal will therefore apply.