Bugfix SQL Statemnt postgresql compatible
Adapted presentation