adding PK and fix url jdbc bug