Fixed Minor Issue with DB_CUSTOM

Changed up the code for DB_CUSTOM,
Now input values with string same as $INPUT_xxx wont effect creating the
SQL Statement
Might be faster aswell :)

Also change Unique ID to start @ 1 for Test APP by default