moved listFiles from hibernate to jdbc calls for performance