Updated AppKit.php

Fixed download function in Main
Added select function to DbManager