Basical analysis code and SQL in place for 4 firsts