get client by id from db