Fix insert on integer PK fields with not null

Moved the emptyinsertstmt into DBBrowserDB class
to be able to query the database for values.