db: move all options into database group

This moves all the options in the database group so it's easier to iterate
over them once and for all in order to pass them to the method creating
the engine.

Change-Id: If3117f01d746f12a07cf4c3b4c4fc1a1ce8b679d