Frontend Layout and Fixing SQL-Statement for multiple versions of one
system