Manager SQL data dynamically