db.insert last insert id wrong datasource bug fix