More work on SQL. All calculating methods are done, need to finish textlayout in gui