fixed a bug with new web2py 2.8.1 foreign keys checking in sqlite