Pictures work, database and UI finally meet