More database stuff....Taking forever! Oh and some UI.