moved from hibernate to jdbc