Autoincrement, foreign keys of sqlite db