cleanup and minor fixes

*moved another GUI element
*fixed SQL interface in cli
*remove unnecessary urllib2 imports