Use insertGetId instead of just insert

This way we don't always get returned 1 and will in fact get the inserted ID.
Fixes prefix in BaseModel.

Signed-off-by: Todd Francis <todd@toddish.co.uk>