Refactoring 2 Electric boogaloo

More ported to DBManager. Select now functioning again.