new fn with new gui and sqlite