create reports from SQL database