PHP backend for kreport