SQL fixed
SQL fixed, DB-mock ready via PHP -could be optimized-