fixed bug in derby test fixture, added update query and tests