make connction string more generic

I added support for multiple databases.

one thing to note, there are a couple database engines that handles LIMIT differently so those databases for now can't limit results. that will require a bigger change to make it work.