sql added & minor layout fixes