Adding database operations to ballotbox server