Added SQL. Progress on layout