Added ability to switch backend types on the fly.
Fixed sqlite and mysql with a goof i made.

Signed-off-by: moose51789 <moose51789@gmail.com>