Java jdbc tool to automate interaction with db