Bug fixes in p190<>database compatibility