A former officer has been sentenced after admitting unauthorised use of police computer systems.