form coded added. with unique code generation

Signed-off-by: Jordan Haines <jordan@jordanairwave.co.uk>
Auto code generation added.  Database code commented out but can be added back in if needed.

Signed-off-by: Jordan Haines <jordan@jordanairwave.co.uk>