Changed bid to integer, changed bid types in table.sql to integer too.
bid to integer