More work on database application