Database documentation / tips / resources
It's difficult to answer this without specifics on what you're looking for and what your plugin is trying to do, but I'd recommend following the plugin development docs, which includes working with databases.

I'd also recommend using somethign like https://pluginfactory.io to generate the plugin boilerplate code for the plugin components you might need.