retrieve data from database
 + correction of warnings&notices