Fixed typing and srsId bugs

Used the correct SQL type for strings (TEXT) and moved srsId code so it can be used to set the correct id in gpkg_geometry_columns